package com.alalei.moodview;

import android.util.Log;

import com.github.mikephil.charting.formatter.ValueFormatter;

/**
 * Author LEI
 * Date 2019/7/24
 * Description
 */
public class MoodXAxisValueFormatter extends ValueFormatter {

    private final String TAG = MoodXAxisValueFormatter.class.getSimpleName();
    private String[] mValues;

    public MoodXAxisValueFormatter(String[] values) {
        this.mValues = values;
    }

    @Override
    public String getFormattedValue(float value) {
        Log.d(TAG, String.valueOf(value));
        return mValues[(int) value];
//        return super.getFormattedValue(value);
    }
}
